Documentation for Users
1.0.2
Perception Toolbox for Virtual Reality (PTVR) Manual
|
The EndCurrentScene Callback ends a scene and goes to the default next scene of the experiment.
This default behaviour of going to the next scene can be changed by further calling SetNextScene () (a method / function of the 'EndCurrentScene' Callback) with an argument defining the scene that must be presented next (called ID_of_the_scene_to_be_presented_next in the code below).
my_Callback = PTVR.Data.Callback.EndCurrentScene () my_Callback.SetNextScene ( idNextScene = ID_of_the_scene_to_be_presented_next)
This code is often used to create a cyclic presentation across time of all the scenes created at the beginning of the script. For this purpose, the variable ID_of_the_scene_to_be_presented_next is the rank of the first scene of the set of scenes.
Python file | Description |
---|---|
...\PTVR_Researchers\Python_Scripts\Demos\Scenes\ 2_one_scene_w_NON_simplified_duration.py | Creates ONE scene whose duration is controlled by using a standard interaction between an Event and an Callback. |
...\PTVR_Researchers\Python_Scripts\Demos\Scenes\ 4_cycle_of_scenes_w_NON_simplified_duration.py | Creates a CYCLE of scenes whose duration is controlled by using a standard interaction between an Event and an Callback. |